package com.damon.utils;

import java.util.ArrayList;
import java.util.Set;
import java.util.TreeSet;

import com.damon.entity.PrintDeviceEntity;
import com.damon.window.WcsWindow;

import lombok.Data;

/**
 * ps:用来保存一些公共对象实例
 * @author 风蚕
 *
 */
@Data
public class GlobalOjbectUtil {
	public static WcsWindow window;//java可视化实例对象
	//数据库中查到的设备列表
	private static ArrayList<PrintDeviceEntity> deviceList = new ArrayList<PrintDeviceEntity>();
	//已连接的设备
	private static Set<String> connecteDDeviceSet = new TreeSet<>();
	
	public static ArrayList<PrintDeviceEntity> getDeviceList(){
		return GlobalOjbectUtil.deviceList;
	}
	
	public static WcsWindow getWindow() {
		return window;
	}

	public static void setWindow(WcsWindow wcsWindow) {
		window = wcsWindow;
	}
	
	public static Set<String> getConnecteDDeviceSet(){
		return connecteDDeviceSet;
	}
}
